package com.ymttest.database.sqlwapper;

import java.util.List;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.YmtStockChangeDetail;

public class YmtStockChangeDetailWapper {
	SqlManager manage;

	public YmtStockChangeDetailWapper() {
		manage = new SqlManager("intpro");
	}
	
	public List<YmtStockChangeDetail> selectByCatalogId(String catalogId)throws InterruptedException{
		  @SuppressWarnings("unchecked")
		List<YmtStockChangeDetail>  ymtStockChangeDetail = manage.getSelectResults(
		            "com.ymttest.database.mapping.YmtStockChangeDetailMapper.selectByCatalogId", catalogId);
		    manage.commit();
		    return ymtStockChangeDetail;
	}
	public static void main(String[] args) throws InterruptedException {
		System.out.println(new YmtStockChangeDetailWapper().selectByCatalogId("9d850861-f6b8-4b23-9ce1-f4b207f6acb8").get(0).getsCatalogId());
	}
}
